import request from "@/utils/request";

// 查询角色列表
export function listRole(data) {
  return request({
    url: "api/Role/GetRoleList_Page",
    method: "post",
    data,
  });
}

// 查询角色详情
export function getRoleDetail(data) {
  return request({
    url: "api/Role/GetRoleDetail",
    method: "post",
    data,
  });
}

// 添加角色
export function AddRole(data) {
  return request({
    url: "api/Role/AddRole",
    method: "post",
    data,
  });
}

// 编辑角色
export function EditRole(data) {
  return request({
    url: "api/Role/EditRole",
    method: "post",
    data,
  });
}

// 删除角色
export function DelRole(data) {
  return request({
    url: "api/Role/DelRole",
    method: "post",
    data,
  });
}

// 绑定角色
export function UserBindRole(data) {
  return request({
    url: "api/Role/UserBindRole",
    method: "post",
    data,
  });
}
